<template>
  <view>
    <Abnor v-if="showAbnor" type="REQUEST_ERROR" v-on:abnortap="abnorTap"></Abnor>
    <alert v-else></alert>
  </view>
</template>

<script>
  import Alert from '@/components/alert';
  import abnor from '@/components/abnor/abnor';

  export default {
    components: {
      alert: Alert,
      Abnor: abnor
    },
    data() {
      return {
        showAbnor: true
      };
    },
    methods: {
      tap() {
        console.log('tap');
      },
      abnorTap() {
        console.log('hello world');
      }
    }
  };
</script>
